<script type="text/javascript">
$(function() {
  $('input[type="checkbox"]').click(function() {
    var value = $(this).parent().next().html() + ";";
    value += $(this).parent().next().next().html();
    console.log('vaue = ' + value);
    var fnString = '${param.fnString}';
    var fn = window[fnString];
  // is object a function?
  if (typeof fn === "function") {
    fn();
  } else {
    console.log('is not a function');
  }
  });  
});
</script>
<div class="row">
  <div class="col-md-12">
    <table class="table">
      <thead>
        <tr>
          <th></th>
          <th>name</th>
          <th>id</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td><input type="checkbox" name=""></td>
          <td>MarkYeh</td>
          <td>12212331</td>
        </tr>
        <tr>
          <td><input type="checkbox" name=""></td>
          <td>Yifu</td>
          <td>00112331</td>
        </tr>
        <tr>
          <td><input type="checkbox" name=""></td>
          <td>Cherry</td>
          <td>a2342</td>
        </tr>
      </tbody>
    </table>

  </div>
</div>